<div class="btn-group">
  <%= link_to("详细",data_type_path(data_type),:class=>"btn btn-primary btn-sm")%>
  <button type="button" class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown">
    <span class="caret"></span>
    <span class="sr-only">Toggle Dropdown</span>
  </button>
  <ul class="dropdown-menu" role="menu">

      <li><%= link_to "编辑",edit_data_type_path(data_type)%></li>

      <li><%= link_to '删除',data_type, method: :delete, data: { confirm: 'Are you sure?' }%></li>
 
  </ul>
</div>
